home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / program / swagd_f.zip / EGAVGA.SWG / 0178_TSENG ET3000 And ET4000.pas < prev    next >
Pascal/Delphi Source File  |  1995-03-03  |  1KB  |  28 lines

  1. (*
  2.  Well i jsut read up on the ET3000 verses teh ET4000, there are a few
  3.  port hardware design changes with the BITS that make it vary hard to
  4.  have a multipupose unit for both..
  5.  Example:
  6.   The 3000 can only address 512k of ram, only 3 bits were supplyed for
  7.  this in the GDC reg.
  8.   when the 4000 came out an extra bit was needed, instead of using
  9.  bits 6 or 7 they move the read bits up one there by making the
  10.  bank select a bit wide grouped instead of a funking bit order.
  11.    but this also makes it hard for the ET4000 to work properly, you mite
  12.  see the read bank get altered when when selecting the write bank using
  13.  conventional 4 bit bank selecting..
  14.  do you need code to detect a ET3000 chip ?
  15.  
  16.   if port[$3cc] and $01 <> 0 then Base := $03D0 else Base := $03b0;
  17.  
  18.   port[base+5] := $33;
  19.   old := port[base+5];
  20.   port[base+5] := old or $0f;
  21.   new_Value := port[base+5];
  22.   port[base+5] := old; { restore it }
  23.    if new_vlaue = <> old THen {ET4000} else { ET3000}
  24.  
  25.  There is so much difference in the bank accessing between the two i
  26.  would suggest a book like mine..
  27. *)
  28.